package pers.mihao.quickstream.common.task.repository;

import pers.mihao.quickstream.common.task.dto.AutomaticTaskDTO;
import pers.mihao.quickstream.common.task.dto.UniqueBizInfo;

import java.util.List;

/**
 * @author mihao
 * @since 2024/11/15
 */
public interface AutomaticTaskRepository {

    void saveAutomaticTask(AutomaticTaskDTO automaticTaskDTO);

    AutomaticTaskDTO queryByBizId(UniqueBizInfo uniqueBizInfo);

    List<AutomaticTaskDTO> queryWaitToScheduler(Long timeRange);

    void batchUpdateStatus(List<AutomaticTaskDTO> taskS);
}
